#!/bin/bash

if [ $# -ne 2 ]
then
    echo "Usage: $0 [interval] [sample count]"
    exit 0
fi

mpstat $1 $2 | head -n -1 | tail -n +3 | gzip -cf > data.dat.gz
echo "Script Complete"
